import { request } from '@/utils/request';
import type { User } from '@/types';

export const userApi = {
  // 获取用户信息
  getUserInfo: (): Promise<User> => {
    return request.get('/sys/user/info');
  },
};